//
//  WCNewFileWindowController.h
//  WabbitCode
//
//  Created by William Towe on 1/15/09.
//  Copyright 2009 Revolution Software. All rights reserved.
//

#import <Cocoa/Cocoa.h>
#import <QuartzCore/CoreAnimation.h>


extern NSString *kWCNewFileTemplateInfoShortDescriptionKey;
extern NSString *kWCNewFileTemplateInfoLongDescriptionKey;
extern NSString *kWCNewFileTemplateInfoFileExtensionKey;

@class WCLinkedView,WCNewFileTemplate,WCProject;

@interface WCNewFileWindowController : NSWindowController {
	IBOutlet NSView *_swapView;
	IBOutlet WCLinkedView *_firstView;
	IBOutlet WCLinkedView *_currentView;
	IBOutlet NSImageView *_leftSplitterHandleImageView;
	IBOutlet NSView *_gradientBarView;
	IBOutlet NSPopUpButton *_fileLocationPopUpButton;
	IBOutlet NSPopUpButton *_addToProjectPopUpButton;
	IBOutlet NSTextField *_fileNameTextField;
	IBOutlet NSOutlineView *_outlineView;
	IBOutlet NSCollectionView *_collectionView;
	IBOutlet NSArrayController *_arrayController;
	
	NSString *_newFileName;
	NSMutableArray *_newFileCategories;
	BOOL _hasPerformedSetupForTheFirstTime;
}
@property (readonly) NSView *swapView;
@property (readwrite, assign) WCLinkedView *currentView;
@property (readwrite, copy) NSString *newFileName;
@property (readonly) NSMutableArray *newFileCategories;
@property (readonly) WCNewFileTemplate *selectedNewFileTemplate;
@property (readonly) WCProject *selectedProject;
@property (readonly) NSString *newFileDirectoryPath;

+ (WCNewFileWindowController *)sharedInstance;

- (void)presentNewFileWindow;

- (IBAction)nextAction:(id)sender;
- (IBAction)previousAction:(id)sender;
- (IBAction)addToProjectPopUpButtonAction:(id)sender;
@end
